package com.eric.rabbit.entity.simple;

import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;

/**
 * @author:Eric
 * @date:2021/6/28
 */
@Data
@Slf4j
@RabbitListener(queues = "simple.hello")
public class SimpleReceiver {

    @RabbitHandler
    public void receive(String in) {
        log.info(" [x] Received '{}'", in);
    }
}
